defineTest(generate_pri_for_shared_library) {
IN_PWD_WIN=$$replace(IN_PWD,/,\\)
OUT_PWD_WIN=$$replace(OUT_PWD,/,\\)
PRI_FILE=$$dirname(IN_PWD_WIN)\\$${TARGET}.pri
PRO_FILE=$${IN_PWD_WIN}\\$${TARGET}.pro
system(echo $${LITERAL_HASH} $${PRI_FILE} > $${PRI_FILE})
system(echo $${LITERAL_HASH} generated from $${PRO_FILE} >> $${PRI_FILE})
system(echo CONFIG(debug, debug^|release):DESTDIR = debug >> $${PRI_FILE})
system(echo else:DESTDIR = release >> $${PRI_FILE})
system(echo INCLUDEPATH += $${IN_PWD_WIN} >> $${PRI_FILE})
system(echo QMAKE_LFLAGS += -L$${OUT_PWD_WIN}\\\\\$\${DESTDIR} >> $${PRI_FILE})
system(echo LIBS += -l$${TARGET} >> $${PRI_FILE})
system(echo DEPENDPATH += $${IN_PWD_WIN} >> $${PRI_FILE})
system(echo POST_TARGETDEPS += $${OUT_PWD_WIN}\\\\\$\${DESTDIR}\\lib$${TARGET}.a >> $${PRI_FILE})
COPY_FROM = $${OUT_PWD_WIN}\\\\\$\${DESTDIR}\\$${TARGET}.dll
COPY_TO   = \$\$replace(OUT_PWD,/,\\)\\\\\$\${DESTDIR}
system(echo QMAKE_PRE_LINK += copy $${COPY_FROM} $${COPY_TO} ^& >> $${PRI_FILE})
return(true)
}

#generate_pri_for_shared_library()
